<div class="container top">
    
      <ul class="breadcrumb">
        <li>
          <a href="<?php echo site_url("admin"); ?>">
            <?php echo ucfirst($this->uri->segment(1));?>
          </a> 
          <span class="divider">/</span>
        </li>
        <li class="active">
          <?php echo ucfirst($this->uri->segment(2));?>
        </li>
      </ul>

      <div class="page-header users-header">
        <h2>
          <?php echo ucfirst($this->uri->segment(2));?> 
          <a  href="<?php echo site_url("admin").'/'.$this->uri->segment(2); ?>/add" class="btn btn-success">Add a new</a>
        </h2>
      </div> 

      
      <div class="row">
        <div class="span12 columns">
          <!-- <div class="well"> -->
            <form class="navbar-form navbar-left" role="search">
                <div class="btn-group">      
                <button type="submit" class="btn btn-default">Employee</button>
                <button type="submit" class="btn btn-default">Project</button>
                <button type="submit" class="btn btn-default">Department</button>
                <button type="submit" class="btn btn-default">Workon</button>
                </div> <!-- End #button -->

                <div>
                  <textarea class="form-control" style="width:600px;" rows="3"  placeholder="input query statement"></textarea>
                </div> <!-- End #input -->
                          
            </form>

          <!-- </div> -->

          <table class="table table-bordered ">
            

            <thead>
              <tr>
                  <th >#</th>
                 <th>EMP_ID</th>
                 <th >Name</th>
                 <th >Birthday</th>
                 <th>Email</th>
                 <th >Level</th>
                 <th >Tax</th>
                 <th>Sal</th>
                 <th >Dept</th>
                 <th ></th>
             
              </tr>
            </thead>
              <?php
              $x=1;
              foreach($employee as $rows)
              {
                  if(($x%2) ==0){
                  echo "<tr class='info'>";
                  }
                  else{
                      echo "<tr class='warning'>";
                  }
                  
                  echo "<td>".$x ."</td >";
                  
                  foreach ($rows as $row ) {
                    echo "<td>". $row ."</td >";
                  }
                  echo '<td>
                  <a href="#" class="btn btn-danger ">Del</a>  
                    </td>';
                  $x = $x+1;
              }
              ?>                  
          
            
          </table>

          

      </div>
    </div>